Skip to content

feat: make constructor synchronous#121

Merged
JustaLiang merged 2 commits intomainfrom
sync-constructor
Mar 20, 2026
Merged

feat: make constructor synchronous#121
JustaLiang merged 2 commits intomainfrom
sync-constructor

Conversation

@zasper32171
Copy link
Copy Markdown
Collaborator

No description provided.

zasper32171 and others added 2 commits March 12, 2026 04:35
- Add await to all config-dependent methods (getConfig, getAllCollateralTypes,
  getUsdbCoinType, getAggregatorObjectInfo, getVaultObjectInfo, etc.)
- Add await to build methods (buildClosePositionTransaction,
  buildDepositToSavingPoolTransaction, buildWithdrawFromSavingPoolTransaction,
  buildClaimSavingRewardsTransaction, flashMint, flashBurn)
- Add await to CDP helpers (debtorRequest, checkUpdatePositionRequest,
  updatePosition, checkUpdatePositionResponse, newAccountRequest)
- Document sync constructor as alternative to initialize()
- Update API Reference section for new constructor signature

Made-with: Cursor
@JustaLiang JustaLiang merged commit be3b2ee into main Mar 20, 2026
6 of 8 checks passed
@JustaLiang JustaLiang deleted the sync-constructor branch March 20, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants